set -e to install script, fixed tilde expansion, general housekeeping