optimizing the check if mm server is already running. Also executing the popen for running mmserver