diff --git a/src/main/resources/execute_asciidoctor.rb b/src/main/resources/execute_asciidoctor.rb
index <HASH>..<HASH> 100644
--- a/src/main/resources/execute_asciidoctor.rb
+++ b/src/main/resources/execute_asciidoctor.rb
@@ -1,9 +1,9 @@
+require 'bundler/setup'
 require 'asciidoctor'
-require 'find'
 
-Find.find($srcDir) do |path|
+Dir.glob("#{$srcDir}/**/*.a*").each do |path|
   if path =~ /.*\.a((sc(iidoc)?)|d(oc)?)$/
-    Asciidoctor.render_file({path, :in_place => true, :safe => Asciidoctor::SafeMode::UNSAFE,
-                             :base_dir => $srcDir, :backend => $backend})
+    Asciidoctor.render_file(path, {:in_place => false, :safe => Asciidoctor::SafeMode::UNSAFE,
+                                   :attributes => {'backend' => $backend}, :to_dir => $outputDir})
   end
 end
Updating to the new <I> and bundler