Fix handling of symbolic links on cleanup

Lets simplify this and use shutil.rmtree() to replace our buggy
implementation (which failed when cleaning up broken symlinks) with a
library call.

Signed-off-by: Jan Blunck <jblunck@infradead.org>