Reverse order to prevent null pointer

This is already done in `chef_solo_automator` and `fog_provider` but we missed changing it in `shell_automator` to match.