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.