Added a --wipedebugdir option to prevent debug logs from growing uncontrolled.