Fix appPath when loading config