set docroot to config path, if it exists. fixes #3