[PD-dev] getdir bug in mingw