Fixed upload path for windows paths

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