Split Travis installation steps into its own script

Split Travis installation steps into its own script so we can check the OS

Also add a sha1sum check to the downloaded `deb` file.