Check for tex files before starting