[patches] fix luci https. getenv("HTTPS") does not work