Dev environment detection fixed