gitnextdirty: better error handling