[bug] dependency not found when specifying target

Dependency list was not being passed by reference.
Merge pull request #5 from massiveart/ghi-4

[bug] dependency not found when specifying target