Refactor decision to run coveralls grunt task