GRADLE-2992 Application plugin should reduce risk of producing a script that exceeds Windows command length limit

Implemented the fist 2 suggestions from [this post](http://forums.gradle.org/gradle/topics/gradle_application_plugin_and_cmd_exe_line_size_limitations#reply_13748510)