diff --git a/lib/ronin/installation.rb b/lib/ronin/installation.rb
index <HASH>..<HASH> 100644
--- a/lib/ronin/installation.rb
+++ b/lib/ronin/installation.rb
@@ -96,8 +96,9 @@ module Ronin
       if Installation.gems.empty?
         # if there are no gems installed, do a raw Dir.glob
         root_dir = File.expand_path(File.join(File.dirname(__FILE__),'..','..'))
+        directory = File.join(root_dir,directory)
 
-        Dir.glob(File.join(root_dir,directory,'**/*.*'),&pass_path)
+        Dir.glob(File.join(directory,'**/*.*'),&pass_path)
       else
         # query the installed gems
         Installation.gems.each do |name,gem|
Only pass back the found sub-paths from Installation.each_file.