Fixed some small issues:

- on Linux the ping command is by default located in '/bin';
- when only pinging localhost once, the delay is never executed
  making it possible that the command is already finished before
  the complete test is set up.