Fix addDependency method

addDependency replaced addJobDependency a lot of time ago
Merge pull request #33 from dlondero/patch-1

Fix addDependency method