Fixing data dir config errors

see #229 and 231