Fix curl

Previous one didn't work in two respect:
  * missing path in url 
  * missing urlencode in `q` param