Fix wrong launch config selection and use file name as config name