fix #1500 too enthusiastic String replace in config.moduleUrl
fix snippet loading in build
update tests
Merge pull request #1504 from ajaxorg/fix/build

Fix snippet loading in build