Utilities for path manipulation.