Code Cleanup, mod_find library function impl.

kraknet and mod_find now both fully take advantage of the common code
for getting script output.

The code has been cleaned a bit, and useless old variables have been
removed.