Restore setuid and save dir