Fix a bug in replace syntax
Always output CMS build settings into Gruntfile