api2install.sh bugfixes