Added path check to setgradle.sh