add FileUtils::normalizePath and use in getNewFilename