Some tab cleanup on control script
Fix threaddump pid logic