Add `httpd_dir` parameter to the base class for custom builds

Closes #265