You could try extending the earth wire by using crimps or even soldering. You would need a proper crimper not the cheapo ones. Alternatively you could take it to the earth lug in the back box then another earth wire from there to the the back of the metal switch. Make sure you get a really tight...