Swithing MacOSX or UNIX for handling td-agent process
Fix to create pidfile on Mac
Note