Use temporary files for input instead of stdin
This fixes a bug for Windows where stdin would get truncated
Merge pull request #94 from shivaram/windows-fixes-stdin

[SPARKR-113] Use temporary files for input instead of stdin