Fixes filename regex error.

Resolves #250.