merged wait_for_emulator with .travis.yml

Lazy mans fix for a permission error.