fix datadir in linux/mac