I scratched my head rereading this one as well, which is never a good sign.  This is my naive way of constructing a Pathname for the current directory so I can search the entire keg.  Is there a better way?