change handling of target/linux/generic-2.x/files to match other targets (#1648)