Add custom code for Authlogic.
Regexp check expanded_path (it is guaranteed to be a String).

Otherwise there is a risk that `path` param is a for example a Pathname.

(Pathname doesn't respond to =~).

Fixes #49.