Recursively merge sources and add current file as a tail