Simplify delete_dir.

Replace the Popen part with a simple call, since I won't handle errors anyway.