Adds the BUILDSLAVE_REPO logic.

Signed-off-by: Markus Hubig <mhubig@gmail.com>