There is a method for getting default docroot , lets use it so you don't have to loop on the underlying folders.