repack.c: rename and unlink pack file if it exists