Yeah, bash quoting/unquoting and environment variables is super hard :/