Use override_options when resolving the environment

See https://github.com/docker/fig/pull/665/files#r20769170