Use native git_repository_workdir method

Previously Repository::getWorkingDirectory was derived from
Repository::getPath which would fail for repos using a .git file.

Refs atom/git-diff#13