Update function to detect the modified source files