fn collect_targets( path: &Path, current_directory: &Path, main: &MainConfiguration, targets: &mut Vec<PathBuf>, ) -> Result<()>