Adds pushdir, popdir, and dirs methods to node's process object.