refactor(grunt): Refactored grunt config helper to work with any environment