fix forge environment detection