Bug #48389: Correct non posix code (fixing FTBFS on GNU/Hurd)

See http://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL