UNIX compat fix

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