Sanity check during elf unpacking

Check that the elf module is not overwritten during elf unpacking.