fixed grack auth for relative root

fixed regression in grack auth when running with RAILS_RELATIVE_URL_ROOT