Added checks to ensure succesful product installation to bash script