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.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>