changed the ps syntax, so it should work on freebsd to added a case so it could easy implemented for other os to