Fixing path releated bugs in FileSystemProvider