why only check for these in recent versions?

also, merge both lines defining `mkfiles` (or atleast put them together)