Only trigger TravisCI timeout workaround when really on TravisCI

Only trigger the bypass of TravisCI timeout when really running tests on TravisCI (#134).