Fix #394: Generation of extension search paths

Thanks to Alen Mujezinovic for the report.
FeinCMS v1.7.1
Merge branch 'master' into next

* master:
  FeinCMS v1.7.1
  Fix #394: Generation of extension search paths