Added filename matching to permalink plugin.