make install.sh safely repeatable