initrd.scripts: improve code style of check_loop