This is actually 2 issues:
The first is that files for urls of required resources are included with the resource name of the dependent resource.
The second is that only the first level of requirements is actually included. Any "requirements-of-requirements" are silently ignored.
I've inluded a patch with tests. (Hopefully making my above points clear as mug ;)
Unfortunately it's rather large as I had to setup a testing setup as well.
Need Dependency fix patch