Add compatibility with ubuntu and debian