bug in scanDir.py