Since the macro PATH_MAX is not defined on every system (GNU/Hurd being one of those who do not define it), we remove all references to this macro. Instead, we use a buffer of arbitraty size and grow it when needed to contain paths.
We seriously need auto-formatting.
Please read commit 2bf80528bd first. Then read the comment within the code of this commit. Then run in circles and cry loudly. fixes #1002 fixes #1026
2bf80528bd