Follow up fix for Bug 970150

It turns out that 6400c02 wasn't really working.
The inner `if` clause, `$?` is `0` no matter what the result from
the app name check, so that any app name would fail for Rails.

This fixes that.