Per Jeff's suggestion, remove function that has duplicate functionality and just use one to check if session_dir directory should be removed.

Refs #4584