out file path bug fix for http:/foo/bar.jpg