Fixed bug in FileSystem::getDirectoryName()