CB-7529 CB-7532 File transfer plugin improvements for windows

This includes fixes for https://issues.apache.org/jira/browse/CB-7529 and https://issues.apache.org/jira/browse/CB-7532