Add 'if' around evaluation of compile commands