lib: handle ../.. in the simplify_path method