Refactored system dependencies check. Cleaned up tests.
Fixed travis config for new testing.