Support bzr, and strip hg trailing trash