Fixed ::instances method such that it accepts names

See https://github.com/ptomulik/puppet-packagex/pull/1