diff --git a/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb b/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb
index 27286dd..099a343 100755
--- a/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb
+++ b/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb
@@ -78,9 +78,13 @@ TextMate::Executor.run( cmd, :version_args => ["--version"],
           if file == '(eval)'
             display_name = file
           else
-            file = Pathname.new(file).realpath.to_s
-            url = '&amp;url=file://' + e_url(file)
-            display_name = File.basename(file)
+            begin
+              file = Pathname.new(file).realpath.to_s
+              url = '&amp;url=file://' + e_url(file)
+              display_name = File.basename(file)
+            rescue Errno::ENOENT
+              display_name = file
+            end
           end
         end
         out = indent
