Fixing bug shell script execution