Switch around the tests in the start script
It will make things more readable if the script invocations in the
if statements come first.

The while loop might avoid a needless call to getpids by
checking the value of COUNT first. (This is probably dependent upon
the shell being run, but normally the loop gets broken if the first
term is false).