Fix keyfile permissions.