Perform minor cleanup.

Factor out common code for copying a group of files, and handle Windows
consistently for all Pythons.
Add IronPython support.