handle ../ in paths