Update BlocksComponent.php

Bug fix for block's visibility paths when working under subdirectory.