bin2c/concat: use standard methods for finding file sizes