Fixes to requirejs build task to include all modules, Fixes #779