Bug 957247

Implement the v1 cartridge's pre-build logic into pre-receive hook.
Merge pull request #2418 from BanzaiMan/dev/hasari/bz957247

Merged by openshift-bot