Use buffer size constant

PATH_MAX is not available on every system