Fixed mongo pre-installed check