Force opts to be options

cb6f3e5 introduced a change to the method airty of machine actions to remove the `extra_env` attribute.

- Fixes #4960