cmd: Improve handle type recognition in WCMD_ReadFile.