removed some old code
fixed crash when passing errornous path to AddDependency