docparser: require tempfile

We use it and were previously relying on Docurium to load it for us.
docparser: recursively create directories

If we want file a/b/c.h we want to make sure that we create a/ and a/b/
which Dir.mkdir doesn't do for us. Use FileUtils.mkdir_p instead.