fix CodeSniffer git submodule bug

fixes #180,
the current git directory is determined with 'git rev-parse --git-dir'