changed the installer to use id rather than name

in theory packages could end up with the same name, but id should always
be unique. it is safer this way