mgen install script working on linux