Bug fix: trim ".wav" properly
More hacks
Remove index.htm and .html if creating them fails