fix moocode, add ace_mode for Mercury
Merge pull request #1103 from sebgod/fix-moocode

fix Moocode detection, add ace_mode for Mercury