modified allowed file formats

improves on the fix for #105
Merge pull request #126 from shapov/master

modified allowed file formats