install.sh: fix some bash pitfalls