Fixed the incorrect root password reference

When we ran the code with encrypted data bag, we got an error:

undefined method `[]' for #<Chef::EncryptedPasswords:0x0000001f8bb9f0>

We found out that, passwords['root'] should be passwords.root_password

This is the pull request.