Logic updates for find_dep_app.py
closes #3397