Adds GIT_HASH support and some config update
Removes git option '--detach'. Not supported on OSX.