work around broken systems without PATH_MAX