Check if $gplusplus_package is defined

Ran into gcc++ duplication errors so I added a check to see if $gplusplus_package is already installed.