Fix perl packages

The perl packages should use the local variable set via the parameter,
not from params.pp.

Also update to support EL7