extract_app_name returns full app name, rather than just the matching fragment