only pass keyfile arg to mongo if its defined