Use host's PATH_MAX in the app, and fix up settings' filename_setting->prefix.