[OTAP-219][OTAP-222] Added checks for right repo before executing target