Added JAVA_HOME for titanium_prep calls.