Update Gruntfile, merge two cases as suggested by @joneshf.