Tweaks to detect heroku script.
Add rootProject name setting for gradle.