Bug 982054

$OPENSHIFT_REPO_DIR is cleaned up before pre-build() function is
invoked, so we were simply saving away an empty directory.

Move this logic to a correct phase of the build cycle, and we really
save away the installed modules.
Merge pull request #3046 from BanzaiMan/dev/hasari/bz982054

Merged by openshift-bot