fetch-pack: Properly remove the shallow file when it becomes empty.