Add new build hook before_postinstall

This pull request adds the build hook before_postinstall. 

It's helpful in cases you want to scp a locale archive to a vm and unpack it with the postinstall scripts.