Use PATH_MAX instead of a hard-coded 256 path limit.