Fix issue #188. Use unsaved files for the dirty files and hopefully
prevent clang from crashing on us.