Consider MODERL_VERSION
Index: compiler-cli/src/run.rs
--- compiler-cli/src/run.rs.orig
+++ compiler-cli/src/run.rs
@@ -188,7 +188,7 @@ fn run_erlang_command(
     }
 
     Ok(Command {
-        program: "erl".to_string(),
+        program: "erl${MODERL_VERSION}".to_string(),
         args,
         env: vec![],
         cwd: None,
