fixed the pstrcpy() bug in directory recursion properly