debuginfo: Improve commandline option handling for debuginfo