allow exists and existsSync to work in Node 0.8+ (fs) and prior (path)
fix path.dirname call
missing callback