Got rid of Windows-specific chdir, used abstract in-memory module loading for test_check_file.