changed filepath vs url detection to make it work with Windows filepaths.
Merge pull request #2 from stopfstedt/windows_filepath_detection_fix