The patch has bug. Consider $PATH first containing something like '/home/me/opt/usr/bin'. Or even that '/usr/bin_strange_backup'. It must check that '/usr/bin' string is final. That is done with check if it is in begin of string or have ':' in front and it is in end of string or have ':' in back.
Fix the patch to show me exactly what you want.
Darrell