Reason was a combination of two bugs. First, the engine strips ".EXE" from the uppercase executable name, only problem was that in certain situations the name was not converted to uppercase. Second, a beginner's mistake: Not checking if the stripping operation failed or not.