get the application name using run_tests

Read the run_tests file, use app_name to discover correct application name. If that fails, fallback to using directory name. Closes #3296