cmFileCommand: turn into free function
3 files changed