fix package resource to support Puppet 3.4 and later

successor of https://github.com/Ericsson/puppet-module-netbackup/pull/6.
Taking care of different package & require handling on Solaris.

Nice, after merging the regex fix Travis likes us again :)