Adding a check to see if the application exists before adding the command config.