Reduce path_helper allocations
Reduce path_helper allocations

Eliminates a very large number of allocation in this routine simply
by moving code which never changes to a static method + constant.

Signed-off-by: Lamont Granquist <0ab8dc438f73addc98d9ad5925ec8f2b97991703@scriptkiddie.org>

higanworks/chef,MsysTechnologiesllc/chef,mattray/chef,MsysTechnologiesllc/chef,tas50/chef-1,mwrock/chef,mattray/chef,tas50/chef-1,mwrock/chef,mwrock/chef,gene1wood/chef,tas50/chef-1,nvwls/chef,nvwls/chef,mattray/chef,mattray/chef,MsysTechnologiesllc/chef,MsysTechnologiesllc/chef,gene1wood/chef,higanworks/chef,higanworks/chef,tas50/chef-1,chef/chef,nvwls/chef,chef/chef,chef/chef,mwrock/chef,higanworks/chef,mattray/chef,chef/chef,gene1wood/chef,higanworks/chef,nvwls/chef,nvwls/chef,nvwls/chef,gene1wood/chef