fix a bug with build scripts not generating correctly

https://travis-ci.org/travis-ci/travis-build/builds/40357662

also reported by users who switched to the new docker setup