Added file-checking before download to prevent errors. Changed name of dependencies to install on ubuntu machines