Added a more robust package installation for automated installs.