Exit if in program to debug not found, make program optional for opening cores (default is b2g).