Fix list directory stack allocation too high.
PATH_MAX is already defined by limits.h, causing stack allocation in list directory function to be too high. Changed the define name to another one to prevent the issue.
PATH_MAX is already defined by limits.h, causing stack allocation in list directory function to be too high. Changed the define name to another one to prevent the issue.