only one directory per app. stop looping once we find the app