Pull logic out and abstract for PE builds
Remove test for root in building apple packages, use sudos

We should call 'sudo' to do everything we need sudo for, so checking that we're
running as root is not necessary, as it makes generic automation incredibly
difficult. This commit updates the script to do so. It also removes a strange
recursive chmod to 755 of the entire pkg directory. I'm fairly certain we don't
want to do this.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>