Combined bleeding edge fix for folders with _MATURITY and dots/spaces

Combined fix for issues https://github.com/akeeba/release-system/pull/51/files and https://github.com/akeeba/release-system/commit/afe3be028f40eae9ecd67b8688eef9d6ea9e18e6