add OS X diagnostic script