Fix analyzing elf from a stage directory