detect Texroot by finding *.synctex.gz or *.pdf