Check for an actual file extension rather then rely on strpos