inc/collectd.inc.php: replace glob by php5 iterators
inc/collectd.inc.php: use RegexIterator + strip $dir from result