Resolve filename the same way as dbFileGenOpen