Before script changed for Travis CI