fix path resolve for ../.. sequences