Ensure compute_deps delays errors until the end
Optimize check_dep_fatal_error() by avoiding a stat(2) if not needed in parent