add getPath() method to BladeCompiler

As in https://github.com/laravel/framework/issues/3747.