Fixed a bug in FileManager.
Fixed a bug in LocalFs.
Fixes #242.