Should be:
createDirectory([root, root+"/configs", root+"/modes", root+"/bin", root+"/services"])