Also add some logic and debug logs to launch_configuration_exists

Fixes #18566