add FileUtils::getNormalizePath and use in getNewFilename

How about A/./B?

Could you please add a test case for all these situations?