Ninja: Refactor internal logic for dyndep code paths
Simplify and clarify the layout of the code, function names, variable names, and conditions. Prepare for future addition of C++ module dependency scanning.
Simplify and clarify the layout of the code, function names, variable names, and conditions. Prepare for future addition of C++ module dependency scanning.