qa/chk.setup: improve script's robustness and usability
qa/chk.setup: improve script's robustness and usability

Improvement based on Marko's feedback.

adfernandes/pcp,wuliming/pcp,adfernandes/pcp,wuliming/pcp,wuliming/pcp,adfernandes/pcp,wuliming/pcp,wuliming/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,wuliming/pcp,wuliming/pcp,wuliming/pcp,adfernandes/pcp,adfernandes/pcp