Handle `pattern = ./path/to/spec.rb` as well.

For #1691.