change "running from dir" check to look for boot-update instead of coreboot.
fix #4, change "i" to "int"