common: fixed COM_GetExtension: https://gist.github.com/mvmalderen/e4a11a3e65e2cd2370bd