Fixed conditional plugin installation