Fixed bug in FileSystem::getDirectoryName()
Merge pull request #973 from dgough/next

Fixed bug in FileSystem::getDirectoryName()