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