Reverts script to something sh can understand

Apparently we can't use bash in travis script? We might need to delegate
it to a bash script or a rakefile or something.