Support custom environments and command runners before and after.