added OS check to JAVA_HOME and EDITOR exports