Fixed bug that local file system failed to create files in subdirectories.