Git module: fix for relative paths

If a relative path is passed as an argument, this change first
converts it to an absolute path.

This fixes a bug where the git module would attempt to chdir into an
invalid directory because of multiple chdir calls against a relative
path.
Merge pull request #1921 from lorin/git-abspath

Git module: fix for relative paths