Fixed several issues with binary package install script.