Properly handle custom unattended_origins_patterns variable

Well, this is painful.