Changeable Data Directory Support

And fixed the mistake of forgetting change the path of the data dir from
local to relative.
Merge pull request #1 from Sleepwalking/master

UNIX compat fix