fix to allow versioned plugins
fix __filename and __dirname on server
include build