Set correct permissions on data dir