{hooks,install,script}/*: Fix formatting in all scripts using shfmt. Replace a few echo calls with printf.