Added extra fail-safes to install file