Update env detect line