Fix gem & rake tasks loading