Fix `check_if_exists` env spec
As it turns out Mix.env
always returns :prod
for dependencies. Knigge now determines the callers env
and puts it into the Options
struct to use it instead of a static @env
module attribute.
Also add a section on compiler warnings which happen in :test
due to the compiler not finding the module.