Replace use of `distutils` once support for python < 3.8 is dropped
distutils
will be removed in a future version of python but we rely on this for the copy_tree()
feature. In Python 3.8+ however, a solution with shutil
can be leveraged which will emulate the needed behavior. See https://stackoverflow.com/a/64340026.