Handle spaces in JAVA_HOME correctly