Fixes in shell script