Use getcwd() when DOCUMENT_ROOT is empty