Convert another use of sys::identifyFileType.

No functionality change.