Added plugin dependencies and fixed OS check.