I had to update the xpath; I'm now using:
Thanks for the wonderful script; no one should run google.com/search without it.
I have updated the xpath. Works for me now. Let me know if there are problems.