using os.path.exists, which that allow to use symlinks, not just whether it is a regular file.