Add first bash of package src code and refacter the host check script