Convert env to hash for shellout