move work dir clean up to the init_node tool