Fixed issues with plugins directory