refresh the environment list when packages are attached and detached from the search path