removing the -g flag since thin edition doesn't have anything else installed
putting most of the installer logic into core