utils: tweak to kointegrate path handling

(integrated from trunk branch change 0718503 by Todd Whiteman <toddw@activestate.com>)