Add path munging functions