Save git commit hash to file for later build phases