rrd.py: fix isfile check