fix some shell mistakes after a Solaris run

It worked on Linux and FreeBSD but OpenCSW build produced the following:

./lmp-v.sh: !: not found
./TESTrun.sh: local: not found
./TESTrun.sh: test: unknown operator ==