lookupPackFile returns a Maybe
Filesystem's basename doesn't do what the shell does
Corrected debug statement