Refactor around inheritable modules

Namespace collission is the suck
Deal with out of tree invocations
ruby: Set some more GEM options and make sure they're unset
Fix bashism