Fix "undefined local variable or method 'app'"

I got this bug report today: janfoeh/paperclip-optimizer/issues/13 - 95fe0b9 seems to have broken the railtie.