Added latex path fix and added prompt-before-quit.