Support for building with pkgbuild instead of packagemaker.

I made changes to support pkgbuild. Please double check that I did things right, I've never done a pull request before!

Thanks for sharing this, as well as for the help on Twitter!