Use $_SERVER['DOCUMENT_ROOT'] as a default projectRoot if this is a web request