Slightly refactored install script