Change the way the firefox extension environment is detected.