Added support for automatically set htdocs dir via pwd