Add options to specify directory and to save the tarball to ixdiagnose