Added code to tell linux from windows
also made sure that getBackendDir was relative and getJavaDir is read from java.cfg