A more portable shebang
s/xpath/query
Added prerequisites
s/wget/curl
Removed warning about Os X: tested OK on FreeBSD