Generation of source files now first checks if target already exists