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