fixed #5731
Merge pull request #589 from pandamicro/v3.0-rc0-hotfix

Hot fixes
Merge pull request #591 from chuanweizhang2013/v3.0-rc0-hotfix

fixed #5731
Issue #5731: Fix win32 directory permission issue