Normalizes a path, taking out '.' and '..'