Fixed bug on files without periods in their name.