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
Merge commit 'f6db6d866a2a428a09b61f97c3def7e2dfe4ff90'