Returned to original Travis detection strategy