docker container can be restarted

previously line 26 os.path.isdir( src) would be true even if src was a symlink,
the following line shutil.rmtree( src ) would descend into the symlinked directory and remove files
but not remove the symlink, this would cause data to be lost if a container was restarted (instead of re-running the image)