fixed ssh, cleanup and general build script
Minor changes