set default resource root path & writable path
Merge pull request #9638 from yinjimmy/writablepath

set default resource root path & writable path