Keep the last two dirs from path