allow lookup of python on system path fix: #18852

fixes #18852