Minor fixes to orchestra/remote.py.

Fix some parameter passing, make sure temp files
are removed.