Modified patch script to only copy files those exist in source tree