mongodb: fix config file installation.

Going to work out a more general fix for bottles at some stage.

References #22149.
Closes #22329.