Got the file extension logic backwards :-/