clib/mktemp.c & shell/If: Fix checking for existing file.