Simple php script to link files inside directories based on link.definition files