The use of conditions in shell tasks without else clause is failing on some systems with an undefined variable error.