example.js: make require path follow NODE_ENV and NODE_PATH

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>