Bug 1087456 part3: create repositories parent dirs if they don't exist.

Older versions of mercurial cannot create inner directories if the
parents don't exist.
Bug 1087456 part4: use build-setup vars to reference repos.