Fixing issue with path to original file having two slashes in it