More permissive diff parsing. Fixes #149