I'm not quite sure about this change. People may be starting e.g. bash with a modified $PATH that doesn't include the location of the executable itself. If it was new code, I probably wouldn't be concerned about this, but I'm very conscious of backwards compatibility with pexpect, because it's been more or less unchanging for years, and I don't know what odd corners it's being used in.