Strip trailing / from $IMGLOC

This reverts the previous change of checking for the mount point instead
of if $IMGLOC exists.

This change strips the trailing slash from $IMGLOC so the user does not
need to remember to remove the trailing slash manually.