why even bother invoking `which bugzilla`. If `which  bugzilla` resolve it it must be in the path.
Why not simply do:
CMD = 'bugzilla'