Fix undefined PATH_MAX on FreeBSD