Can you comment/explain this target_path check? why?