Rewrite findtty() in bootlogd.c to not chance working directory, to