Improve the checks for where to find ndbm (dbm_open etc); should now