Guestloader : Remove duplicated code, modify build/*.sh file