AMF: Parse and set environment variables before spawning process