fn check_output<F, T>(output_paths: &[PathBuf], f: F) -> Option<T>where
    F: Fn(&PathBuf) -> Option<T>,