Fixed skipping of files based on extension