Get correctly current working directory in getcwdir

Checks on the working directory size was done but no data was written
to result buffer.