Fix the ruby and perl options

Before this change --perl would not actually add the perl module.