minor fixes for workfetch on Windows. #4288
properly handle perl scripts as workfetch scripts,
fix deadlock in startd when fetch script does not consume stdin.
===VersionHistory:Pending===