Made directory.rb interactive