Remove unused `path` args from list_env, Fixes #4847