launch: Rearrange the code so config check is first.