bug fixing on PathUtil.copyDirectory