Fix #394: Generation of extension search paths

Thanks to Alen Mujezinovic for the report.
FeinCMS v1.7.1