Fix issues with Padrino and Rubinus

This should fix issue #452.