Tagged release v3.40.2

6c1ca08 build: fix typo
485f5ff build: add SURVEY_VERSION env variable