Fix issue #1107 - normalized relative paths

This removes possible duplicating errors from same assets having different paths, e.g.

This finds and replaces strings withing the path name
"/path/../" with "/"
"path/../" with ""
"/./" with "/"
"./" with ""

E.g.

    lib/../../bower_components/hello/src/modules/../hello

becomes

    ../bower_components/hello/src/hello

As described by #1107