DRY/fix debugger invocation code. This time, mostly for remake and gdb