Fix a memory issue with  --term (read after free)

Holzhammer unso.
Use C++ strings and stuff inside ApplicationRunner
Reference member with this->