Guest loader, Bmguest : Fix duplicate code