Harden shell script