switches chown to chmod for m2 directory