[PD-dev] pd_getdirname and pd_getfilename