get the application name using app_name= in run_tests. If fail, use directory name. Closes #3296
Merge pull request #3297 from milljm/app_name

get the application name using run_tests