Add Ubuntu support

Hi Garrett, I add ubuntu as support function, hope it can help the module more compatible.