Make index.js use __dirname (more robust).