Bug fix for the dependency_generator() function.
Authored by: bugman 2007-11-26
Parent: [r4056]
Child: [r4058]