Fixed upload path for Windows paths

You only replaced the backslashes in $Name and not in PATH_UPLOADS, so it never matched properly.