Fix for  STS-3799, VESC-213

Test-app is a special case similar to run-app when running from the
command prompt.