strip trailing whitespace from default `pwd`-based project directory.

`pwd` on some systems will return a path with a trailing newline. That results in an incorrect path resolution to the git repository.