Gitk shell fix

Avoid using git rev-parse to prevent shells from appearing when using gitk.