editcomponents.cgi: remove CGI usage, code style