mongodb: fix etc path.

Closes #22329.
Closes #22810.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>