CLOUDIFY-2022 use subprocess and add debug logs for investigating travis failure