trimDots rollback to fix building parts

Fixes #1129

That's a parcial rollback of @3f9160e, with this it will bring back funcionality of other project buildings that use requirejs@~2.1.0 

If you don't mind, please release this as 2.1.13 in order to fix retro compatibility.