diff --git a/lib/cliver/dependency.rb b/lib/cliver/dependency.rb
index <HASH>..<HASH> 100644
--- a/lib/cliver/dependency.rb
+++ b/lib/cliver/dependency.rb
@@ -67,7 +67,7 @@ module Cliver
     # @raise [ArgumentError] if incompatibility found
     def check_compatibility!
       case
-      when @executables.any? {|exe| exe[?/] && !exe.start_with?(?/) }
+      when @executables.any? {|exe| exe[%r(\A[^/].*/)] }
         raise ArgumentError, "Relative-path executable requirements are not supported."
       end
     end
<I>.x compatibility