pub fn check_compiler_path(single_file: bool, path: &Path) -> Result<()>
Checks that the given path is a valid compiler path.