Fix attach to process with Unity Soft Debugger

Reimplementing fixes for attaching to Unity processes on updated master.