Return config hash from _remove_redundancies on Windows

This addresses #417