Index: ext/os/lib.rs
--- ext/os/lib.rs.orig
+++ ext/os/lib.rs
@@ -4,6 +4,7 @@ use std::borrow::Cow;
 use std::collections::HashMap;
 use std::collections::HashSet;
 use std::env;
+use std::path::PathBuf;
 use std::sync::Arc;
 use std::sync::atomic::AtomicI32;
 use std::sync::atomic::Ordering;
@@ -112,7 +113,8 @@ pub enum OsError {
 #[op2]
 #[string]
 fn op_exec_path() -> Result<String, OsError> {
-  let current_exe = env::current_exe().unwrap();
+  let current_exe =
+    env::current_exe().unwrap_or_else(|_| PathBuf::from("${PREFIX}/bin/deno"));
   // normalize path so it doesn't include '.' or '..' components
   let path = normalize_path(Cow::Owned(current_exe));
 
