Harden shell scripts with improved robustness & verbosity.