support custom rootPath fixed #4

rt