improve Ubuntu/Debian support