fix rrd.cgi and rrd archives creation (thanks Olliver for reporting)