fixing relative path for /foo/bar , /foo/bar_baz becoming ._baz
Changelog for #1730.