scripts/unit-test.py: Rework handling of directories in clone_pkg()

This makes things a bit neater and accounts for directories that might
already exist as a result of the docker build process.

Tested: Ran run-unit-test-docker.sh, confirmed expected functionality

Change-Id: Ieebd63da0383e4431ae9cdf972e8905aff96f175
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
1 file changed