Windows UNC paths, used as final destination, were damaged.

misc.sanitize_and_trim_path() did not handle UNC paths properly.
Do not remove a leading dot in a path element.

"/folder/.hidden/" must be preserved.
"/folder/hidden./" must be converted to "/folder/hidden/"
Make OSX MountainLion build compatible with Mavericks.
Merge remote-tracking branch 'upstream/0.7.x' into 0.7.x