Fix the --list tests for windows