check for protoc in path

For issue https://github.com/codekitchen/ruby-protocol-buffers/issues/4, copied which method from http://stackoverflow.com/questions/2108727/which-in-ruby-checking-if-program-exists-in-path-from-ruby