Functions

Normalize a path, removing things like . and .. wherever possible.