Handle the possibility of help being undefined
Include defined regex in command search matching