Fix bug with fallback folders, where the file extension does not get applied.