Re-add condition for copying kernel modules