Add env_sh field and app & bolt defns update function