fixes #6037 adds valid file extensions