fix os.path.exists lines in systemtools.py