Revert "Change the way the firefox extension environment is detected."

This reverts commit 8680b8cf33e58597e978d2282bb03e492520e25d.