elf2pkgs: add recursion for directories