suppress trailing dot on empty file extensions