make rrd_mkdir_p work on bsd* unixes too ... their dirname call works differently...