Trailing slash fix

This will fix https://github.com/rainphp/raintpl3/issues/130