Fix argv_of_pid call on OSX.