Fix permissions of datadir, config dir