better app paths detection