fix creating archive from CLI