Feature #4977: Fix searchPath problem in a alternative way