Simplify code and write exe path directly to stream.
Simplify code and write exe path directly to stream.

No need for a temporary string allocation here.

muojp/heaptrack,stormspirit/heaptrack,muojp/heaptrack,muojp/heaptrack,stormspirit/heaptrack,muojp/heaptrack,muojp/heaptrack,stormspirit/heaptrack