shell: add os_detect and update package aliases

move debian package aliases to packages.sh
create new functions for cross-platform package mgt