Open databases without directory if the path points to a file