Fixed handling of docroot so it is no longer needed, which is nice