Remove some platform-specific code from pkg state

Recent changes to windows repo handling mean we can treat Windows
package names like the other platforms.