Taking only first line of build display name for submitting build status to Stash.
Improving Gradle compatibility.