Allow builds with repo, client or both

adapting mw-apply-wb-settings.sh script used for jenkins

Change-Id: I110d67fd0e3cd3b902263608610fc8b9963522a5