quicktex: Better style, fix TEXINPUTS being overwritten