[tor-commits] [tor/release-0.2.2] Add a function to pull off the final component of a path