Changeable Data Directory Support

And fixed the mistake of forgetting change the path of the data dir from
local to relative.