Move key file creation to after package installation so the user exists.

The mongo user seems to be created by the yum package installation, so until
that gets run, the user doesn't exist and the key file's permissions can't be
assigned.