Fix the 'failed to write to file' error when --out is set
Fix the 'failed to write to file' error when --out is set

ashetty1/kompose,rtnpro/kompose,surajnarwade/kompose,pradeepto/kompose,kubernetes/kompose,procrypt/kompose,kadel/kompose,containscafeine/kompose,procrypt/kompose,kadel/kompose,sebgoa/kompose,surajnarwade/kompose,pradeepto/kompose,ngtuna/kompose,rupalibehera/kompose,cdrage/kompose,containscafeine/kompose,skippbox/kompose,sebgoa/kompose,skippbox/kompose,gitlawr/kompose,rtnpro/kompose,rupalibehera/kompose,surajnarwade/kompose,ashetty1/kompose,cab105/kompose,cdrage/kompose,dustymabe/kompose,ngtuna/kompose,gitlawr/kompose,gitlawr/kompose,containscafeine/kompose,dustymabe/kompose,procrypt/kompose,skippbox/kompose,ngtuna/kompose,rupalibehera/kompose,pradeepto/kompose,dustymabe/kompose,rtnpro/kompose,sebgoa/kompose,cab105/kompose,kubernetes/kompose,cab105/kompose,ashetty1/kompose