[ecl_filesystem] robustify realpath buffer size choice