update libtins to 3.1
fix trailing whitespace
fix for older ruby versions
libtins: update 3.1 bottle.