Fix detection of dirty working directory.
Fix detection of dirty working directory.

Changed/untracked files outside source directories were not ignored
since the changes in 103562d.

hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande