ensure tmpfile is accessible to dsh subprocess

Specify delete=False in invocation of NamedTemporaryFile constructor to ensure
that the temporary file it creates exists on disk and is accessible to other
processes. Wrap the dsh invocations that depend on it in a try / finally. In
the finally block, ensure the file is cleaned up.

Change-Id: I3ea77bddd50601c06a476f3392f776c467fc2335
Merge "ensure tmpfile is accessible to dsh subprocess" into production