Upgraded to Gradle 2.2.1
Handle cases when there is no git repo