Apply the pattern.filter to every alias (including those without an extension)

Currently the .filter only applies to the aliases with an extension. But there are also aliases without an extension. If you want to create a filter that affects the alias itself, this means you have to use the extension version. This patch fixes that issue.
Can we come up with a test that doesn't depend on platform specifics?