Fixed location of node and made dir argument mandatory