fix setup script bugs for Debian