added automatic MEME version detection