simplify valid_extensions a little bit

Closes gh-1.
0.8.4