fix bug with ../.. paths joining