Modifying script to be run by travis

(trying to get to the bottom of why it won't work!)