Added dose patches for portable /tmp directory and quoting criteria

This is needed to maintain aligned the dose in opam's src_ext and the one built as a package.