Better method for moving to install directory for travisCI.

This method is better since it doesn't rely on importing networkx.
If networkx fails to import, possibly due to dependency or syntax
errors, then we wouldn't change directories. And then no tests
would be run.
Make coverage report ImportErrors.

This makes travisCI report failures when they are caused by dependency
issues or syntax errors or ...