Use /run instead of old /var/run on Debian
The HTTPS variable isn't set if on non HTTPS server
Various fast regression fixes