check for existence of node dir