Bug fix by turegjorup: Fixed allowed filetypes bug