Gruntfile analysis and re-write to fix deployment bug