Improved chef related code in  config.sh