Fix a deadlock scenario in envfiles usage
Fix a deadlock scenario in envfiles usage

swipely/amazon-ecs-agent,swipely/amazon-ecs-agent,swipely/amazon-ecs-agent,aws/amazon-ecs-agent,kiranmeduri/amazon-ecs-agent,kiranmeduri/amazon-ecs-agent,kiranmeduri/amazon-ecs-agent,swipely/amazon-ecs-agent,aws/amazon-ecs-agent,kiranmeduri/amazon-ecs-agent,aws/amazon-ecs-agent,aws/amazon-ecs-agent