I think `-e` is wreaking havoc, then.

Also, I think we should be a little more specific about what we look for in `Gemfile`. Namely:

```
grep -q " rails " Gemfile.lock
```

The spaces are important so that some strange gem, say "grails", is not picked up.