updated host provisioner to handle tar files and directories