Modify file path in test

Previous test used /tmp for creating stdout/err files. If files
are left from a previous test by another user, the test would
always fail. It was also necessary to increase the field size
logged for checking since the current working directory might
be a long path.