Update package.rb

Only add headers if needed. Compatibility with Chef < 11.6