[TIMOB-15841] Fixed debugging apps with and without sd cards.
[TIMOB-15841] Fixed a number of places where the profilerPort was incorrectly referenced.
Merge pull request #5091 from cb1kenobi/timob-15841

[TIMOB-15841] Fixed debugging apps with and without sd cards.