Repository.mk: move conditional to the right place

regression from 139a4b6229905e44f22a0b747ea9c44f30e468f4, thanks _david_

Change-Id: Ifce88cc5dd3dfc252a16407b4141ba2751564171