Add option to set the path to custom preinstall and postinstall scripts

Hi timsutton, `pkgbuil` has a useful option `--scripts` to add some pre and post install scripts.  
Thus it can be used to customize the generated packages. I made few changes to make it work.