Enable Capybara::UI.path to accept strings or regular expressions