Add defensive scripting methodologies to install script