used same function for non windows as windows to determine dbFile