repo bash completion: _find_repo: improve check

Checking if main.py exists is better than checking if it
is a file, since it might be a symlink.

Change-Id: I1a9e617470a05c2161479cd3f0a10712a2b9d2c2