Local directory allocator returns a bare path, without a URI specifier. This means that calling Path.getFileSystem will do the wrong thing with the returned path. Should really stick a "file://" in front.
Also it's test cases need to be improved to make sure this class works fine.
Only the latter needed to be done (see below for discussion).