Improved support for local files as URL

Patch for COOK-3970

https://tickets.opscode.com/browse/COOK-3970