refactor: simplify finding files in both source and target