Fix auto-opening after compiling tex files