Merge the information from directory listing and from the code to get dependencies.