Fix typo and don't add extension if it's already there