Quick and dirty Gemfile parser

MRI parser is over 10000 lines of C code. So, we win?
Minor refactoring for parser `detect`