Add detection of changes in output directory