Restore old calls to chmod 777.