Fix validation of $node_module_dir