some bugfixes in install script