Fix permission command for reset-dir