Correct dir permissions on publish