Support long hostnames for Travis-CI tests.