function chdir( path ) {
	try {
		proc.chdir( path );
	} catch ( err ) {
		return err;
	}
	return null;
}
Changes the current working directory.

@param {string} path - desired working directory
@returns {(Error|null)} error object

@example
var err = chdir( __dirname );
if ( err ) {
    throw err;
}