Avoid using git rev-parse to prevent shells appearing when using gitk
Merge pull request #4 from sindharta/gitk_shell_fix

Gitk shell fix