Fix broken grammar loading in a gem context