Fix output of 'Cannot open file' (without %s) (possible null deref)