check for curl

Lame implementation.  But it works.