Added local fall-back in case cURL is not available or possible.

Worked on a localhost that had very restrictive firewall and couldn't use external list. 
I've added local fall-back for such situations.