When checking debugger use just the suffix. Could also try something
like basename sans prefix.