bugfixes in install script