Improved the function getExecutionPath().