Compatibility with Nette 2.2

ok but I'll add the leading slash when calling strpos to prevent false positive matches like `/foovendor/nette/`

Maybe l should do the same with the trailling slash as well. After all it's good practice to not add trailling slashes to paths in PHP.