abc.sh: ensure that trailing slashes are dealt with properly