Bugfix for checking excluded extensions