COOK-2563: Installation fails when we have a dirty '/var/lib/alternatives/#{cmd}'