add dot before checking for file extensions. avoids false positives with random git filenames ending in eaf