Fixes n2cms/n2cms#117 - Image gallery supports sites in virtual directories