updated run script to support multiple os