[SPARK-1459] Use local path (and not complete URL) when opening local lo...

...g file.