fix centos5/6 typo

the typo itself is not causing any error, in fact i think it's better to use `box` as the block variable

also changed fixed some rubycop warnings :)