Fixed typos directory.rb