Slight refactor of code initialising memory for argments/environment c-strings

I believe this makes the code easier to read.