Fixing shell script permissions