Set JDK paths properly for remote EC2 build.