Added support for BSD systems and seperated Linux & BSD monitoring scripts.