Added validations for ANDROID_HOME and JAVA_HOME