Bug fixes for install script.