Fixed the beforescript for travis-ci