--- a/test/helper.rb
+++ b/test/helper.rb
@@ -79,7 +79,8 @@
     
     def ruby arg
       Dir.chdir(TEST_DIR) do
-        cmd = "#{ENV['_']} -I #{INC} #{arg} 2>>/tmp/out"
+        cmd = File.symlink?("/proc/#{$$}/exe") ? File.readlink("/proc/#{$$}/exe") : ENV['_']
+        cmd = "#{cmd} -I #{INC} #{arg} 2>>/tmp/out"
         result = system(cmd)
         result ? assert(result) : raise(cmd)
       end
