After running pdm_options_mgr command to add a variable to NX.env or NX.env_tpl files, an existing last line of those files is replaced with a new variable added by the command.