Add OS X support to clean_ipc.php