more dabugging output and reformulation of the condition

It seems the old condition did not recognize a file as not being
a non-osd file.