Use stringstream and string instead of PATH_MAX

Make hurd people happy as well