Perform a crude mod_env check

Closes #448.