Added functionality for targetfile option. Allows updating reference to filerevved-files in specified targefiles