Consider MODERL_VERSION
Index: compiler-cli/src/shell.rs
--- compiler-cli/src/shell.rs.orig
+++ compiler-cli/src/shell.rs
@@ -26,7 +26,7 @@ pub fn command(paths: &ProjectPaths) -> Result<(), Err
     ctrlc::set_handler(move || {}).expect("Error setting Ctrl-C handler");
 
     // Prepare the Erlang shell command
-    let mut command = Command::new("erl");
+    let mut command = Command::new("erl${MODERL_VERSION}");
 
     // Print character lists as lists
     let _ = command.arg("-stdlib").arg("shell_strings").arg("false");
