Add script to export env and fix some travis.