Move os.path.exists to common.