Setting db->root to $PREFIX breaks package installation if package was configured with '--prefix=$PREFIX'.