change autodependent detection - now finished tasks not adds in dependsOn (TODO: make test)