shim __filename, __dirname for book context