[rebrand] use dynamic app name for env vars

Fair warning, this is only tested on linux and not very thoroughly, up to you if you want to include it.