corrected config.rb
refactored getRootDir SiteServlet function