I added this to make plugin loading work. The underlying problem was actually that the 'os' plugin wasn't being loaded. I've remove this line and it works fine.