[Bugfix] Adjust old code, now all pericmd's run return envres directly