Fix #17, ensure the keyfile is writable before creating a user
Ensure key file is writable on user creation PR #25