ensure that destination directories don't exist before creating them
minor #3785 ensure that destination directories don't exist before creating them (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

ensure that destination directories don't exist before creating them

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

The ``install.sh`` script fails if you run it multiple times (e.g. to update the bundle and CMF docs).

Commits
-------

de7d206 ensure that destination directories don't exist before creating them