Fixed issue with path starting with file://