Make pkg state work with Windows packages