Fix autodetection on platforms where 'httpd -V' does not work without corresponding environment variables.