Added methods and logic to setup directory service
addeed logic to exit if dir version is not supported by cookbooks