Small bug fix to allow extensions to be uppercase.