run.sh: ensure only one process runs

Fix typo in maxchildren arg; add maxspare arg.
Merge pull request #3 from alexeicolin/pr--issue1

 run.sh: ensure only one process runs