Solved more compatibility issues with older versions of R

2.12, 2.13 do not have regmatches

2.11 does not have list2env and as.environment is not generic, has to
abandon it. Other workaround?