Some fixes for rrdcopy