Fixing file extension matching