Fixed registry-based Windows Kit detection, added test