Fix group permission in prepare-dirs

refs #7890