Use cwd instead of __dirname for resolving plugin paths