Replace use of stat()[7] by -s switch in TAP tests to retrieve file size