ec2: Fix bug where `num_running` isn't reset, py24 compat.