Fixed bug when 'htdocs' doesn't exist.