Fix renaming files in the root folder of a MappedLocal storage

`dirname('foo.txt')` returns `'.'` which messes up `MappedLocal::buildPath()`

This works around that by returning `''` instead.

cc @DeepDiver1975 @PVince81 @schiesbn