Shell script and cookbook to upgrade mongodb