Changed directory for 'git rev-parse HEAD'