mod/shell: simplify if statement