Organize output based on file paths
Fixes dependencies links