Fixes for FileUtils

compiles after previous patch
Merge pull request #9195 from ricardoquesada/fixes_fileutils

Fixes for FileUtils