Propose a new path resolution algorithm for System.cmd