Retry mongohq config
Fix flask-security errors with custom version