PATH_MAX is not exactly portable. Hack around it for now.