Build script now tries to figure out the system and java home