Fixing starting an HTTPS server by loading the files synchronously