Fix bug created by fix for files with dots in name

- fixes THIRTEEN ASSERTIONS
- git blame 23168869eeb0d58e020f70018b6b8526d6605015 (:v:)