[TIMOB-11886] Added better error handling around removing the build directory for mobile web builds.
Merge pull request #4356 from cb1kenobi/timob-11886

[TIMOB-11886] Added better error handling around removing the build dire...