fix support for debug in common-run shell script