fixed regex error in sync.py