It looks like your $ pathname contains more than one word. There may be several lines in your .rm.cfg file, or perhaps the path includes spaces. Anyway, you end with
if [ ! -z word word word/$1 ]
which is useless. If you just expect one path and want to protect against a path containing spaces, change the if line to
if [ ! -z "$pathname/$1" ]
chrisdowney
source share