Use err(3) when checking for pkg_add_dbdir