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

...ctory for mobile web builds.