aosp.py: Add revert() and change repo_ver to repo_date
aosp.py: Fix the logic to check connection and file name in flash image