Fix problem when searching for tags db in parent directory