Fixes compatibility with Laravel 4.1

if (method_exists($router, 'getCurrentRoute')){…} fails to determine if we are using Laravel 4.1.x or 4.0.x.
Instead, we can use a constant de identify the version...