adjusting function for finding changed scripts