install: add set -e, remove faulty else clause