Ignore RUBY_CONFIGURE_OPTS from environment in testing

Avoids failures caused by somebody's environment possibly having
RUBY_CONFIGURE_OPTS exported to have a value.
Fix `script/test` in a non-Travis environment

`script/test` will now only attempt to call `script/mirror` if either
TRAVIS_PULL_REQUEST or TRAVIS_COMMIT_RANGE is set.