Changed the script FileSystem::fileName() according to docs.