Update newmod.sh

Fixed additional compare in newmod.sh.