Don't try to read dpkg database unless its directory is accessible to us.