rrdtool: fix pathname comparisons