Fix bad ref test for proxy support

If you run behind a proxy, you won't get a socket error, you'll get an
OpenURI::HTTPError instead (because the proxy will return a 503).  That's
perfectly acceptable, too.
Merge pull request #124 from mpalmer/fix-bad-ref-test

Fix bad ref test for proxy support