Improve check mode reporting for directories and file modes.