Refactored travis coveralls logic