Change all "test this && test that" to "test this -a that". And replace
"==" used within tests to a single "=" for portability.