Only output HTML when detecting running in CGI/Plack/mod_perl

https://rt.cpan.org/Ticket/Display.html?id=81359