Added logic to mc install script