Fixing TAR issue as its different in various releases of ESXi, thanks to
aspineux for the code snippet