Revert "fixed app detection, hopefull."

This reverts commit 71c10757ef2c3a01fcb042ea5d8c108260f44251.
bug fix for rails 3 detector.