Modify the install script for GEdit 3.8 support

Versions of GEdit after 3.8 only support Python 3 plugins,
while versions before only support Python 2 plugins.
Therefore, the installer needs to detect these versions and
install the correct plugin file accordingly.