Updated script to support multiple Linux machines