Use python's difflib instead of calling the diff cmd. Fixes issue where diff isn't always available on Windows. Fixed #960