Update Travis build config

Necessary due to NPM’s inconsistency surrounding the prepublish hooks.
More details: https://github.com/npm/npm/issues/3059