move guard to gemfile, fix travis tests on older rubies