makedef: Handle tabbed version scripts properly

Not all sed and grep variants support '\t', so use tr. This
also fixes the current sed regexes.

Fixes #9.