Implemented @kob-aha's fix and upgraded to Gradle 1.3