Adding before build hook
Merge pull request #1169 from datapimp/before-build-hook

Adding before build hook