I would expect the loop to work as long as your mobilechief install is somewhere under the same C:\Program Files\Ampps\www\wp and less than 10 folders deep. I haven’t tried this on Windows but I wouldn’t expect the path separators (“/” on unix/linux vs “\” on Windows) to matter in this case. I suppose you could be having a different issue with similar symptoms.
Hmm. What this code is doing is finding wp-load.php which moved between WordPress versions. This loads some common information about WordPress environment etc. The loop checks up to 10 levels higher in the tree but doesn’t descend into any folders or look outside the containing tree.
Can you find wp-load.php in your environment? If it is located elsewhere, relative to your mobilechief install, then that might give you a clue on how to modify my work-around.
I inserted this before any other functional code. Line 76 worked in my version of the file.