Fixed error in script
Fixed problem with gradleW