[Sandbox] Fix issues when installed as a gem.