An in-memory regex match is a lot cheaper than whacking the filesystem, so do that check first.
Use binstubs if available in the rubber script since it can be much faster, particularly on JRuby.