resolve_dependencies rewrite to make it faster and only report back actually missing deps

this fixes #763