The issues above is due to requirejs adding a windows linebreak when running grunt requirejs on windows not unix.