[bug] dependency not found when specifying target

Dependency list was not being passed by reference.