fix problem with filename parsing if file does not have extension but also has a...