Allow single file-path argument
Allow single file-path argument

Change to the directory of that file.
Argument must have a file separator to avoid no-op `cd .`.
Allow simpler use of output from `locate` or `git ls-files`.

pavoljuhas/smart-change-directory,pavoljuhas/smart-change-directory