Fix test_warnings on Windows (don't change current directory)