Rewrite define.rb to use a heuristic for defs
Nicer output for ruby scripts
Update makefile for zip and dictionary