Properly read KMLs from file

This fixes ticket  #1401 - All KML files are being treated as HTTP URLs, even KMLs on disk.