Rework aliases to avoid usage of libedit

While here remove all support for libedit, that make pkg and libpkg.so
not being linked to libedit and libncurses
remove debug printf
Remove yet another printf debug