fixed shell script for linux