Refactor travis install logic to move it into a shell script