Added better error handling to install-root.sh file.