Moved helpers for app support dirs from config.h to a new file.