Shell script: fixed setting constants
Shell script: fixed package manager detection