I personally did not have problems with the script since I do not use paths with spaces. I just happened to be looking through the script comparing it to the flashing script from another Linux distribution and noticed that as written the script will escape only the first space. One would be extremely lucky to run this on a system that has spaces in path names and not have problems as the bash interpreter will take the path as two tokens unless the text is quoted properly. Fixing the script as the patch shows ensures you don't have to hope that the path name is properly quoted everywhere.
Fortunately you didn't have problems with the script.
Thank you very much for your suggestion, we have already forward this to the appropriate team. I encourage you to keep posting your feedback and suggestions in the communities