Align dose patches for portable /tmp directory and quoting criteria

This is needed to ensure that building opam from internal sources or external packages yields the same results.