check for directory? in WeirdMethodLocator#valid_file? prevents crash under jruby
Merge pull request #873 from pritchie/master

check for directory? in WeirdMethodLocator#valid_file?