makedef: Remove stray $ from IFS

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
makedef: Clean-up in case of unexpected exit

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