Don't call subprocess.Popen twice when output == 'file'.

This fixes the real issue behind https://github.com/nipy/nipype/issues/705