added generic support for picking up map dependencies between files with the same basename