trim trailing whitespace
make it more obvious when target (sub)directory is skipped

This should avoid the sort of confusion seen in:

  https://github.com/aspiers/shell-env/issues/1