fixed some issues in gradle build file