Modifying scripts for linux environment