Do not add trailing garbage in archives

Signed-off-by: Gianpaolo Macario <gmacario@gmail.com>