ugly string manipulation to get default config path