I think the bottom line is not to touch user's existing folder.

It's better to handle this automatically, for exampl, if you found the same folder exist, generate random folder as you do for working folder, and do the customize/build in that folder. After building,  remove that random folder.

If you want it simple, you could print the error information to notify user switch to other folder for building.