Convert from a command/perl script to a SETUID executable with CGI