Clear file modification cache when project directory changes.