Fix 404.html to build to a file instead of a directory by updating UglyUrls during build