Modified restore script for chef 11 to restore credentials as well