Fix stop script - was failing to stop postgres

With the -e switch on the bash shebang the script stops once the count
of running processes reaches zero (grep returns non-zero is no lines
match) for the first batch and as a result, postgres is never stopped.
Tested on local (non vagrant) install.