Fix dependencies inference for auto-disabled targets

Sometimes information about dependencies causing disabling were loosed and it
was not possible to correctly display these dependencies in status report
Merge pull request #297 from taka-no-me:fix_deps