Added auto-detection of travis environment.