Fix parsing parent paths