fixed schema existence check which seems to sometimes be case sensitive ...

...and sometimes not