CFY-2709
CFY-2709

add fix that won't hold two open file handles on the same file, which
breaks it in windows but works great in linux.

cloudify-cosmo/cloudify-cli,codilime/cloudify-cli,mahak/cloudify-cli,mahak/cloudify-cli,isaac-s/cloudify-cli,isaac-s/cloudify-cli,isaac-s/cloudify-cli,isaac-s/cloudify-cli,codilime/cloudify-cli,01000101/cloudify-cli,mahak/cloudify-cli,cloudify-cosmo/cloudify-cli,01000101/cloudify-cli,codilime/cloudify-cli,01000101/cloudify-cli,codilime/cloudify-cli,mahak/cloudify-cli