fix false positive for deteting PATH=, update #1785
NEXT: [GH-1785] for 1.19.2
NEXT: [GH-1788] for 1.19.2