add condition for global to gruntfile